<?php /* Smarty version Smarty-3.1.21-dev, created on 2018-03-07 17:48:00
         compiled from "/data/wwwroot/61kq.com/uploads/app/template/member/com/pay.htm" */ ?>
<?php /*%%SmartyHeaderCode:11646250935a9fb55049b060-66661491%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e6bfb8b3d25380e2ac7130007d928a744ec80ddd' => 
    array (
      0 => '/data/wwwroot/61kq.com/uploads/app/template/member/com/pay.htm',
      1 => 1517227390,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '11646250935a9fb55049b060-66661491',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'config' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_5a9fb550528091_76628433',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5a9fb550528091_76628433')) {function content_5a9fb550528091_76628433($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['comstyle']->value)."/header.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div class="w1000">
<div class="admin_mainbody"> 
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['comstyle']->value)."/left.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

  <div class=right_box>
    <div class=admincont_box>
    <div class="clear"></div>
    <div class="com_tit"><span class="com_tit_span">购买<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>
</span></div>
    <div class="clear"></div>
      <div class="com_body">
         <div class="clear"></div>
          <div class="admin_new_tip ">
            <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>温馨提示</div>
            <div class="admin_new_tip_list_cont">
              <div class="admin_new_tip_list"> 当前<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>
兑换比为1元=<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_proportion'];
echo $_smarty_tpl->tpl_vars['config']->value['integral_priceunit'];
echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];
if ($_smarty_tpl->tpl_vars['config']->value['integral_min_recharge']>0) {?>，单次最低充值<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_min_recharge'];
echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>
。<?php }?> </div>
            </div>
          </div>
          
        <iframe id="fdingdan"  name="fdingdan" onload="returnmessage('fdingdan');" style="display:none"></iframe>
        <form id="alipayment" name="alipayment" target="fdingdan" action="index.php?c=pay&act=dingdan" method="post" onsubmit="return pay_form();">
        <input type="hidden" id="integral" name="price_int" value="100" />
        <div class="payment_list">
        <div class="payment_list_s">充值数量：</div>
        <div class="payment_list_r">
        <span class="payment_list_text payment_list_cur" data-id="100">
        <i class="payment_list_text_icon"></i>100<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>

        </span>
        <span class="payment_list_text" data-id="500">
        <i class="payment_list_text_icon"></i>500<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>

        </span>
        <span class="payment_list_text" data-id="1000">
        <i class="payment_list_text_icon"></i>1000<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>

        </span>
        <span class="payment_list_text" data-id="2000">
        <i class="payment_list_text_icon"></i>2000<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>

        </span>
        <div class="payment_list_zdy"><input type="text" id="autointegral" onBlur="comautointegral();" class="payment_list_input"placeholder="自定义" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" maxlength='6'/><?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>
</div>
        </div>
        <div class="payment_list"><div class="payment_list_s" style="line-height:40px;">金额：</div><div class="payment_list_r"><span class="payintegral" id="payintegral">100</span>元<input type="hidden" name="price" size="10"  id="user_vip_price"></div></div>
	    <div class="payment_list"><div class="payment_list_s" style="line-height:92px;">支付备注：</div><div class="payment_list_r"><textarea name="remark" id="remark" cols="40" class="payment_list_textarea"></textarea></div></div>
       
        <div class="payment_list coupon"><div class="payment_list_s">&nbsp;</div><div class="payment_list_r">
	    <input type="submit" name="submit" class="payment_list_other" value="提交订单">
	    </div>
        </div>
        </div>
	    </form>
	
      </div>
    </div>
  </div>
</div>
</div>
<?php echo '<script'; ?>
>
var weburl="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
";
<?php if ($_GET['id']&&$_GET['type']=='vip') {?>
$(document).ready(function(){
	check_rating_coupon('<?php echo $_GET['id'];?>
');
});
<?php }?>
function comautointegral(){
	var proportion='<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_proportion'];?>
';
	var integral=parseInt($("#autointegral").val());
	if(integral){
		var min_recharge='<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_min_recharge'];?>
';
		if(min_recharge>0&&integral<min_recharge){
			integral=min_recharge;
			$("#autointegral").val(integral);
			$("#integral").val(integral);
		}else{
			$("#autointegral").val(integral);
			$("#integral").val(integral);
		}
		var price=integral/proportion;
		$("#user_vip_price").val(price);
		$("#payintegral").html(price);
		$(".payment_list_text").removeClass('payment_list_cur');
	}
}
$(document).ready(function(){
	var proportion='<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_proportion'];?>
';
	if($.trim($("#integral").val())){
		var integral=$.trim($("#integral").val());
		var price=integral/proportion;
		$("#user_vip_price").val(price);
		$("#payintegral").html(price);
	}
	$(".payment_list_text").click(function() {
		var val=$(this).attr('data-id');
		$(".payment_list_text").removeClass('payment_list_cur');
		$(this).addClass('payment_list_cur');
		$("#autointegral").val('');
        $("#integral").val(val);
		var price=val/proportion;
		$("#user_vip_price").val(price);
		$("#payintegral").html(price);
    });
	$("#autointegral").keyup(function(e) {
		if($(this).val()){
			$(".payment_list_text").removeClass('payment_list_cur');
			$("#integral").val($(this).val());
			var price=$(this).val()/proportion;
			$("#user_vip_price").val(price);
			$("#payintegral").html(price);
		}else{
			$("#integral").val('0');
			$("#user_vip_price").val('0');
			$("#payintegral").html('0');
		}
	});
});
<?php echo '</script'; ?>
> 
<input name='integral_min_recharge' value="<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_min_recharge'];?>
" type="hidden"/>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['comstyle']->value)."/footer.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
